package com.ruoyi.background.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 规章制度对象 app_company_rules
 *
 * @author susu
 * @date 2024-08-05
 */
public class AppCompanyRules extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 列表图片
     */
    @Excel(name = "列表图片")
    private String img;

    /**
     * 制度标题
     */
    @Excel(name = "制度标题")
    private String title;

    /**
     * 制度类型
     */
    @Excel(name = "制度类型")
    private Integer type;

    /**
     * 发布部门
     */
    @Excel(name = "发布部门")
    private Long deptId;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 0不置顶 1置顶
     */
    @Excel(name = "0不置顶 1置顶")
    private Integer setTop;

    /**
     * 0正常 1 下架
     */
    @Excel(name = "是否上架")
    private Integer status;

    /**
     * 置顶顺序
     */
    @Excel(name = "置顶顺序")
    private Integer topOrder;

    /**
     * 实施日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实施日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date impDate;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImg() {
        return img;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setSetTop(Integer setTop) {
        this.setTop = setTop;
    }

    public Integer getSetTop() {
        return setTop;
    }

    public void setTopOrder(Integer topOrder) {
        this.topOrder = topOrder;
    }

    public Integer getTopOrder() {
        return topOrder;
    }

    public void setImpDate(Date impDate) {
        this.impDate = impDate;
    }

    public Date getImpDate() {
        return impDate;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("img", getImg())
                .append("title", getTitle())
                .append("type", getType())
                .append("deptId", getDeptId())
                .append("content", getContent())
                .append("setTop", getSetTop())
                .append("topOrder", getTopOrder())
                .append("impDate", getImpDate())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
